package com.crm.model.vo.announcement;


import com.crm.model.entity.sys.Notify;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author  wll
 * @date 2020/12/21 08:55
 */
@Data
public class AnnouncementVO {
    private String notifyId;

    private String title;

    private Integer type;

    private String uploadId;

    private Integer isTop;

    private Short deleteStatus;

    private String createPeople;

    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTm;

    private String updatePeople;


    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date updateTm;

    private String notifyContent;

    public AnnouncementVO() {
        super();
    }

    public AnnouncementVO(Notify notify) {
        this.notifyId = notify.getNotifyId();
        this.title = notify.getTitle();
        this.type = notify.getType();
        this.uploadId = notify.getUploadId();
        this.isTop = notify.getIsTop();
        this.deleteStatus = notify.getDeleteStatus();
        this.createPeople = notify.getCreatePeople();
        this.createTm = notify.getCreateTm();
        this.updatePeople = notify.getUpdatePeople();
        this.updateTm = notify.getUpdateTm();
        this.notifyContent = notify.getNotifyContent();
    }

}